package chaxun;

public class Student {
    private String name;
    private int age;
    private String gender;
    private String phone;
    private String address;
    private String email;
    public Student(){//默认构造器
    }
    public Student(String name,int age,String gender,String phone,String address,String email){
        this.name=name;//有参数的构造器
        this.gender=gender;
        this.age=age;
        this.phone=phone;
        this.address=address;
        this.email=email;
    }
    //方法
    public String  getName(){
        return name;
    }
    public void setName(String name)
    {
        this.name=name;
    }
    public int  getAge(){
        return age;
    }
    public void setAge(int age)
    {
        this.age=age;
    }
    public String  getGender(){
        return gender;
    }
    public void setGender(String gender)
    {
        this.gender=gender;
    }
    public String  getPhone(){
        return phone;
    }
    public void setPhone(String phone)
    {
        this.phone=phone;
    }
    public String  getAddress(){
        return address;
    }
    public void setAddress(String address)
    {
        this.address=address;
    }
    public String  getEmail(){
        return email;
    }
    public void setEmail(String email)
    {
        this.email=email;
    }
    public void eat(){
        System.out.println(name+"吃法");
    }
    public void drink(){
        System.out.println(name+"喝水");
    }
    public void play(){
        System.out.println(name+"玩");
    }
    public void happy(){
        System.out.println(name+"乐");
    }
}
